{% extends "base_fullpage.html" %}

{% block content %}

<h2>Storage units</h2>
<a href="/storage_unit/new">Create New</a>
{% if storage_units %}
<ul>
{% for su in storage_units %}
  <li>
    <a href="/storage_unit/view?key={{ su.key.urlsafe() }}">{{ su.name }}</a> <br/>
    {{ su.location }} <br/>
    {{ su.description }}
  </li>
{% endfor %}
</ul>
{% endif %}


<h2>Containers</h2>
<a href="/container/new">Create New</a>
{% if containers %}
<ul>
{% for c in containers %}
  <li>
    <a href="/container/view?key={{ c.key.urlsafe() }}">{{ c.name }}</a> <br/>
    {{ c.description }}
    {% if c.storage_unit %}
    <br/>
    <b>Location: </b> {{ c.storage_unit.get().name }}&nbsp;/&nbsp; {{ c.slot }}
    {% endif %}
  </li>
{% endfor %}
</ul>
{% endif %}

{% endblock %}
